﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.Comment
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string Comment_ID = strid;
                    ShowInfo(Comment_ID);
                }
            }
        }

        private void ShowInfo(string Comment_ID)
        {
            BLL.Comment_List bll = new BLL.Comment_List();
            Model.Comment_List model = bll.GetModel(Comment_ID);
            this.lblComment_ID.Text = model.Comment_ID;
            this.lblCommentBy.Text = model.CommentBy;
            this.lblComment_Context.Text = model.Comment_Context;
            this.lblScoreValue.Text = model.ScoreValue.ToString();
            this.lblComment_Type.Text = model.Comment_Type.ToString();
            this.lblComment_Date.Text = model.Comment_Date.ToString();
            this.lblCommentTo.Text = model.CommentTo;
            this.lblReply_Context.Text = model.Reply_Context;
            this.lblReply_Date.Text = model.Reply_Date.ToString();

        }
    }
}